// pages/goods/search/component/aboutFood.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    info:{
      type:Object
    }
  },
  lifetimes:{
    attached(){

    }
  },
  /**
   * 组件的初始数据
   */
  data: {
    point:[
      'http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/shouye/shouye-pingfen-yellow.png',
      'http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/shouye/shouye-pingfen-yellow.png',
      'http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/shouye/shouye-pingfen-yellow.png',
      'http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/shouye/shouye-pingfen-yellow.png',
      'http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/shouye/shouye-pingfen-gray.png'
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toDetail(e){
      console.log(e);
      
      wx.navigateTo({
        url: '/pages/travel/travel/index?scenicSpotId='+e.currentTarget.dataset.id
      })  
    },
  }
})
